<style type="text/css">
    .remark{padding-top:4px;word-break:normal;width:auto;display:block; white-space:pre-wrap;word-wrap:break-word;overflow: hidden}
</style>
<link rel="stylesheet" type="text/css" href="../../../static/Huploadify-master/Huploadify.css">
<script type="text/javascript" src="../../../static/Huploadify-master/jquery.Huploadify.js"></script>
<style>
    li {
        list-style-type: none;
        vertical-align: middle;
        height: 30px;
        line-height: 30px;
        margin: 10px 0;
    }
    li a{text-decoration:none;}
    li a img{
        border:1px solid #999999;
        margin-right: 20px;
        float: left
    }
    li a div{
        float: left;
        width: 50%;
        text-align: center;
        height: 30px;
        line-height: 30px;
        vertical-align: middle;
        white-space:nowrap;
        overflow:hidden;
        text-overflow:ellipsis;
    }
    li a div{
        width:50%;
        text-align: center;
    }

</style>
<script type="text/javascript">

    //初始化页面
    var keyId = (getUrlParam("keyId", url));
    fy_api.load_template({controller: $("#saveForm").attr("templateParam", "keyId=" + keyId), initValue: true,loading: true,loaded: init});

    function init(){

        //设置状态
        var useFlag = $("#useFlag").text();
        if(useFlag == "1" || useFlag == 1){
            $("#useFlag").text("禁用");
        }else{
            $("#useFlag").text("启用");
        }
        //是否主页显示
        var type = $("#type").text();
        if(type == "0" || type == 0){
            $("#type").text("下单");
        }else if (type == "1" || type == 1){
            $("#type").text("取款");
        }

    }

</script>
<form id="saveForm" templateUrl="columnExt/get.do">
    <table style="margin: 10px auto;border: 1px solid darkgrey;padding: 10px">
        <tr>
            <td>
                <div class="div-label"><span class="nullTip">*</span>公司名称：</div>
            </td>
            <td>
                <div class="div-item">${content.companyName}</div>
            </td>
        </tr>
        <tr>
            <td>
                <div class="div-label"><span class="nullTip">*</span>字段名称：</div>
            </td>
            <td>
                <div class="div-item">${content.columnKey}</div>
            </td>
            <td>
                <div class="div-label">字段默认值：</div>
            </td>
            <td>
                <div class="div-item">${content.defaultValue}</div>
            </td>
        </tr>
        <tr>
            <td>
                <div class="div-label"><span class="nullTip">*</span>是否启用：</div>
            </td>
            <td>
                <div class="div-item" id="useFlag">${content.useFlag} </div>
            </td>
            <td>
                <div class="div-label"><span class="nullTip">*</span>显示页面：</div>
            </td>
            <td>
                <div class="div-item" id="type">${content.type} </div>
            </td>
        </tr>
        <tr>
            <td>
                <div class="div-label">备注：</div>
            </td>
            <td colspan="3">
                <div class="div-item" style="width: 90%">${content.remark} </div>
            </td>
        </tr>
    </table>
</form>
<div class="form-buttons">
    <a id="btnBack" class="easyui-linkbutton c2" href="#" iconCls="icon-undo" onClick="parent.j_closeWin();">返回</a>
</div>